home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / kant-generator-04-c / Kant ƒ / Kode ƒ / program globals.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-23  |  2.0 KB  |  77 lines  |  [TEXT/MMCC]

  1. /**********************************************************************\
  2.  
  3. File:        program globals.h
  4.  
  5. Purpose:    This is the header file for all the program-specific
  6.             global variables, #defines, enums, and structs.
  7.  
  8. This program is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2 of the License, or
  11. (at your option) any later version.
  12.  
  13. This program is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with this program in a file named "GNU General Public License".
  20. If not, write to the Free Software Foundation, 675 Mass Ave,
  21. Cambridge, MA 02139, USA.
  22.  
  23. \**********************************************************************/
  24.  
  25. #ifndef _PROGRAM_GLOBALS_H_
  26. #define _PROGRAM_GLOBALS_H_
  27.  
  28. #define CREATOR            'Kant'
  29. #define APPLICATION_NAME "\pKant Generator"
  30. #define    SAVE_TYPE        'TEXT'
  31. #define    SAVE_VERSION    1
  32.  
  33. enum                    /* window indices in gTheWindowData[] lists */
  34. {
  35.     kAboutWindow=0,        /* about box */
  36.     kAboutMSGWindow,    /* "About MSG" splash screen */
  37.     kHelpWindow,        /* help window */
  38.     kMainWindow            /* main graphics window */
  39. };
  40.  
  41. #define    NUM_WINDOWS        4        /* total number of windows (see above enum) */
  42.  
  43. enum ErrorTypes
  44. {
  45.     allsWell=0,
  46.     
  47.     /* shell errors */
  48.     kNoMemory,
  49.     kNoMemoryAndQuitting,
  50.     kProgramIntegrityNotVerified,
  51.     kProgramIntegritySet,
  52.     kSystemTooOld,
  53.     userCancelErr,
  54.  
  55.     kCantCreateFile,
  56.     kCantOpenFileToSave,
  57.     kDiskFull,
  58.     kCantWriteFile,
  59.     kCantOpenFileToLoad,
  60.     kCantLoadFile,
  61.     kFileTooLarge
  62. };
  63.  
  64. //#define NUM_FIND        4
  65.  
  66. extern    FSSpec            saveFile;
  67. extern    Boolean            deleteTheThing;
  68.  
  69. extern    Boolean            gAlwaysResolve;
  70. extern    short            gSpeedDelay;
  71. //extern    Str255            gFindString[NUM_FIND];
  72. //extern    Str255            gReplaceString[NUM_FIND];
  73. //extern    short            gLastFindPosition;
  74. //extern    short            gWhichFound;
  75.  
  76. #endif
  77.